package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the WAIT_DEAL database table.
 * 
 */
@Entity
@Table(name="WAIT_DEAL")
@NamedQuery(name="WaitDeal.findAll", query="SELECT w FROM WaitDeal w")
public class WaitDeal implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="WAIT_DEAL_WAITID_GENERATOR", sequenceName="SEQ_52")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="WAIT_DEAL_WAITID_GENERATOR")
	@Column(name="WAIT_ID")
	private long waitId;

	@Column(name="CUSTOMER_ID")
	private BigDecimal customerId;

	@Column(name="CUSTOMER_NAME")
	private String customerName;

	@Column(name="WAIT_CREATE_PEOPLE")
	private String waitCreatePeople;

	@Temporal(TemporalType.DATE)
	@Column(name="WAIT_CREATE_TIME")
	private Date waitCreateTime;

	@Column(name="WAIT_DESCRIBE")
	private String waitDescribe;

	@Column(name="WAIT_EXCUTE")
	private BigDecimal waitExcute;

	@Temporal(TemporalType.DATE)
	@Column(name="WAIT_FINISH_DATE")
	private Date waitFinishDate;

	@Temporal(TemporalType.DATE)
	@Column(name="WAIT_FINISH_TIME")
	private Date waitFinishTime;

	@Column(name="WAIT_PRIOR")
	private BigDecimal waitPrior;

	@Column(name="WAIT_STATE")
	private BigDecimal waitState;

	@Column(name="WAIT_THEME")
	private String waitTheme;

	//bi-directional many-to-one association to WaitDealStyle
	@ManyToOne
	@JoinColumn(name="WAIT_TYPE")
	private WaitDealStyle waitDealStyle;

	public WaitDeal() {
	}

	public long getWaitId() {
		return this.waitId;
	}

	public void setWaitId(long waitId) {
		this.waitId = waitId;
	}

	public BigDecimal getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(BigDecimal customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getWaitCreatePeople() {
		return this.waitCreatePeople;
	}

	public void setWaitCreatePeople(String waitCreatePeople) {
		this.waitCreatePeople = waitCreatePeople;
	}

	public Date getWaitCreateTime() {
		return this.waitCreateTime;
	}

	public void setWaitCreateTime(Date waitCreateTime) {
		this.waitCreateTime = waitCreateTime;
	}

	public String getWaitDescribe() {
		return this.waitDescribe;
	}

	public void setWaitDescribe(String waitDescribe) {
		this.waitDescribe = waitDescribe;
	}

	public BigDecimal getWaitExcute() {
		return this.waitExcute;
	}

	public void setWaitExcute(BigDecimal waitExcute) {
		this.waitExcute = waitExcute;
	}

	public Date getWaitFinishDate() {
		return this.waitFinishDate;
	}

	public void setWaitFinishDate(Date waitFinishDate) {
		this.waitFinishDate = waitFinishDate;
	}

	public Date getWaitFinishTime() {
		return this.waitFinishTime;
	}

	public void setWaitFinishTime(Date waitFinishTime) {
		this.waitFinishTime = waitFinishTime;
	}

	public BigDecimal getWaitPrior() {
		return this.waitPrior;
	}

	public void setWaitPrior(BigDecimal waitPrior) {
		this.waitPrior = waitPrior;
	}

	public BigDecimal getWaitState() {
		return this.waitState;
	}

	public void setWaitState(BigDecimal waitState) {
		this.waitState = waitState;
	}

	public String getWaitTheme() {
		return this.waitTheme;
	}

	public void setWaitTheme(String waitTheme) {
		this.waitTheme = waitTheme;
	}

	public WaitDealStyle getWaitDealStyle() {
		return this.waitDealStyle;
	}

	public void setWaitDealStyle(WaitDealStyle waitDealStyle) {
		this.waitDealStyle = waitDealStyle;
	}

}